/* Copyright (c) 2021, National University of Defense Technology. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef PARCSR_IJ_GENERATOR_H
#define PARCSR_IJ_GENERATOR_H

#include "parcsr_generator.h"

namespace YHAMG
{

class ParCSR_IJ_Generator : public ParCSR_Generator
{
public:
	int Loc_rows;
	const long* col_partitioning;
	const int* LocGlo_rowptr;
	const long* LocGlo_colind;
	const double* LocGlo_values;
	int pattern_symmetry;

	ParCSR_IJ_Generator();
	ParCSR_IJ_Generator(MPI_Comm comm);
	ParCSR_IJ_Generator(MPI_Comm comm, int Loc_rows, const long* col_partitioning, 	const int* LocGlo_rowptr, const long* LocGlo_colind, const double* LocGlo_values, int pattern_symmetry);
	void operator()(ParCSR_Matrix& A) const;
};

}

#endif